﻿using System;
using System.Collections.Generic;
using System.Text;
using QuickDev.Caching;
using QuickDev.Model;

namespace QuickDev.Web.UI
{
    public class SitePage : System.Web.UI.Page
    {
        #region Member Variables

        private SiteSettings _siteSettings;

        #endregion

        #region Properties

        /// <summary>
        /// Gets the site settings.
        /// </summary>
        /// <value>The site settings.</value>
        public SiteSettings SiteSettings
        {
            get
            {
                _siteSettings = SiteSettingsCache.GetCachedModel();
                if ( _siteSettings == null )
                {
                    _siteSettings = new SiteSettings();
                }
                return _siteSettings;
            }
        }

        #endregion
    }
}
